import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue(App)
app.$mount()

export default {
  // 这个字段走 app.json
  config : {
    // 页面前带有 ^ 符号的，会被编译成首页，其他页面可以选填，我们会自动把 webpack entry 里面的入口页面加进去
    pages: [
       '^pages/shopIndex/main','pages/order/main', 'pages/center/main',
    ],
    window: {
      backgroundTextStyle: 'light',
      navigationBarBackgroundColor: '#fff',
      navigationBarTitleText: 'WeChat',
      navigationBarTextStyle: 'black'
    },
    tabBar: {
      "color": "#a9b7b7",
      "selectedColor": "#11cd6e",
      "borderStyle": "white",
      "list": [
        {
          "selectedIconPath": "/static/images/index.png",
          "iconPath": "/static/images/index.png",
          "pagePath": "pages/shopIndex/main",
          "text": "首页商城",
          "navigationBarTitleText":"首页商城"
        }, {
          "selectedIconPath": "/static/images/shopping-cart.png",
          "iconPath": "/static/images/shopping-cart.png",
          "pagePath": "pages/shopCart/main",
          "text":"购物车",
          "navigationBarTitleText":"购物车"
        },
        {
          "selectedIconPath": "/static/images/order.png",
          "iconPath": "/static/images/order.png",
          "pagePath": "pages/order/main",
          "text": "我的订单",
          "navigationBarTitleText":"我的订单"
        }, {
          "selectedIconPath": "/static/images/center.png",
          "iconPath": "/static/images/center.png",
          "pagePath": "pages/center/main",
          "text": "个人中心",
          "navigationBarTitleText":"个人中心"
        }
      ]
    }
  }
}
